Repository navigation
feat: move every wheel package into packages/, starting with clangd-bin - #8
Merged
Merged
Conversation
* feat: publish clangd as Python wheels Repackage clangd and clang's builtin headers from the clang-tools-static-binaries releases, unchanged, as wheels for LLVM 18 and later on Linux (glibc and musl), macOS and Windows, x86_64 and arm64. clangd goes into the environment's bin/ and the headers into lib/clang/<major>/include next to it, where clangd looks for them. sources.json pins the SHA-512 of every file. A daily workflow pins new LLVM releases and opens a pull request. * feat: publish clangd as clangd-bin wheels Build the wheels with hatch-prebuilt from the clangd binaries and clang resource headers in the clang-tools-static-binaries releases (LLVM 18 and later), and test and release them with the shared cpp-linter/wheels workflows. The smoke test checks that clangd parses a file with clang's builtin headers and answers a language server initialize request.
Every package of the repository gets a directory under packages/. Its release tags become hatch-prebuilt-v<version>; the old v0.1.0 to v0.3.0 tags still count.
The history of cpp-linter/clangd-wheel, moved into packages/clangd-bin.
…-bin The workflows, Dependabot, pre-commit and .gitignore come from the root of this repository now; the links point here.
…place - ci.yml builds and tests the wheels of each package that a change touches (scripts/plan.py), with hatch-prebuilt from the same commit; a change to hatch-prebuilt, scripts/ or the shared workflows builds them all. One check, All wheels pass, sums it up. - publish.yml uploads any package: a release tagged <package>-v<version>, or a run by hand with the package's name. - automation.yml releases each package whose version file has a new version (scripts/release.py), and opens one update pull request per upstream project (scripts/update.py). - binary-wheels.yml builds a package in a directory, with artifact names of its own and, optionally, hatch-prebuilt from this repository. - scripts/new_package.py (was runbooks/new-wheel.py) writes a package under packages/; CONTRIBUTING.md takes over from runbooks/. The wheel repositories that have not moved yet keep calling binary-wheels.yml, wheel-automation.yml, monitor-upstream.yml and wheel-release.yml as before.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Turns this repository into the one home of the cpp-linter wheels: every PyPI package is a directory under
packages/, and one set of workflows builds, tests, releases and uploads all of them. This first step moves hatch-prebuilt and clangd-bin in; the other wheel repositories follow one pull request each.Merge with "Create a merge commit" (not squash): the clangd-wheel history comes in with it.
Layout
How it works
scripts/plan.pymaps the changed files to packages; a change to hatch-prebuilt,scripts/or the shared workflows builds them all. Wheels are built with hatch-prebuilt from the same commit, so a plugin change is tested against every package before it merges.<package>-v<version>(clangd-bin-v23.1.7,hatch-prebuilt-v0.4.0). On each push tomain,scripts/release.pyreleases every package whose version file has a version that is neither released nor on PyPI; the App publishes the release, which startspublish.yml.scripts/update.pyupdates all packages of an upstream project (LLVM, ccache, ...) in one pull request, which merges itself when "All wheels pass".v0.1.0tov0.3.0tags still count, the next release ishatch-prebuilt-v0.4.0.The repositories that have not moved yet keep calling
binary-wheels.yml(unchanged defaults),wheel-automation.yml,monitor-upstream.ymlandwheel-release.yml, now marked legacy.Before merging
default-branch: require the check All wheels pass (replaces the oldTestjobs, which are gone).wheels, workflowpublish.yml, environmentpypi/testpypi, once clangd-wheel has released 23.1.6.pypiandtestpypi: if their deployment rules only allowv*tags, allow*-v*too (clangd-bin-v*,hatch-prebuilt-v*).v0.4.0: publishing it would create av0.4.0tag that publish.yml rejects.Checked
tests/test_scripts.py(31 tests), pre-commit, actionlint and zizmor pass locally.scripts/new_package.py clang-querywrites a package that builds and passes its smoke test with hatch-prebuilt from this branch; a clangd-bin wheel builds frompackages/clangd-binthe same way.hatch-prebuilt-v0.4.0tag.Generated by Claude Code